if __name__ == '__main__':
    import time

    for i in range(101):  # 添加进度条图形和百分比
        bar = '[' + '=' * i + ']'
        print(f"\r{bar} {i:3}%", end='', flush=True)
        time.sleep(0.05)
    print()